package com.yd.domain.business;

import com.yd.domain.sys.DicEnum;
import com.yd.domain.sys.OrderIdUtil;

import java.util.Date;
import java.util.List;

/**
 * @author zy
 * @create 2018-03-07 9:21
 * @desc 订单
 **/
public class Order {
    private String orderId= OrderIdUtil.getOrderId();//订单号
    private String userId;//用户id
    private String status= DicEnum.ORDER_STATUS.UN_DEAL;//订单状态
    private String statusName;//状态
    private Date createTime;//生成时间
    private Date dealTime;//交易时间
    private String expressCode;//快递单号
    private String payStatus= DicEnum.PAY_STATUS.UN_PAY ;//付款状态
    private String payStatusName;//付款状态
    private Boolean ifCoupon; //是否使用优惠券
    private Float totalPrice;//总价格
    private Float totalWeight;//总重量
    private Float dealPrice;//交易价格
    private List<OrderGoods> goods;
    private String userName;//
    private String companyName;//公司名称
    private Coupon coupon;//优惠券
    private String content;//订单备注信息
    private String expressage;//快递信息
    private String phStatus;//配货状态
    private String phone;
  //  private List<GTypeOne> gTypeOneList;//订单商品分类
    private List<String> gTypeOneIdlist;//改订单涉及到的一级分类
    private List<String> gTypeIdlist;//改订单涉及到的二级分类

    public List<String> getgTypeOneIdlist() {
        return gTypeOneIdlist;
    }

    public void setgTypeOneIdlist(List<String> gTypeOneIdlist) {
        this.gTypeOneIdlist = gTypeOneIdlist;
    }

    public List<String> getgTypeIdlist() {
        return gTypeIdlist;
    }

    public void setgTypeIdlist(List<String> gTypeIdlist) {
        this.gTypeIdlist = gTypeIdlist;
    }

   /* public List<GTypeOne> getgTypeOneList() {
        return gTypeOneList;
    }

    public void setgTypeOneList(List<GTypeOne> gTypeOneList) {
        this.gTypeOneList = gTypeOneList;
    }*/

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getPayStatusName() {
        return payStatusName;
    }

    public void setPayStatusName(String payStatusName) {
        this.payStatusName = payStatusName;
    }

    public Coupon getCoupon() {
        return coupon;
    }

    public void setCoupon(Coupon coupon) {
        this.coupon = coupon;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhStatus() {
        return phStatus;
    }

    public void setPhStatus(String phStatus) {
        this.phStatus = phStatus;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getDealTime() {
        return dealTime;
    }

    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    public String getExpressCode() {
        return expressCode;
    }

    public void setExpressCode(String expressCode) {
        this.expressCode = expressCode;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public Boolean getIfCoupon() {
        return ifCoupon;
    }

    public void setIfCoupon(Boolean ifCoupon) {
        this.ifCoupon = ifCoupon;
    }

    public Float getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Float getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(Float totalWeight) {
        this.totalWeight = totalWeight;
    }

    public Float getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(Float dealPrice) {
        this.dealPrice = dealPrice;
    }

    public List<OrderGoods> getGoods() {
        return goods;
    }

    public void setGoods(List<OrderGoods> goods) {
        this.goods = goods;
    }

    public String getExpressage() {
        return expressage;
    }

    public void setExpressage(String expressage) {
        this.expressage = expressage;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", userId='" + userId + '\'' +
                ", phone='" + phone + '\'' +
                ", status='" + status + '\'' +
                ", statusName='" + statusName + '\'' +
                ", createTime=" + createTime +
                ", dealTime=" + dealTime +
                ", expressCode='" + expressCode + '\'' +
                ", payStatus='" + payStatus + '\'' +
                ", payStatusName='" + payStatusName + '\'' +
                ", ifCoupon=" + ifCoupon +
                ", totalPrice=" + totalPrice +
                ", totalWeight=" + totalWeight +
                ", dealPrice=" + dealPrice +
                ", goods=" + goods +
                ", userName='" + userName + '\'' +
                ", companyName='" + companyName + '\'' +
                ", coupon=" + coupon +
                ", content='" + content + '\'' +
                ", expressage='" + expressage + '\'' +
                ", phStatus='" + phStatus + '\'' +
                ", gTypeOneIdlist=" + gTypeOneIdlist +
                ", gTypeIdlist=" + gTypeIdlist +
                '}';
    }
}
